using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class LT_SurgeonMap : EntityTypeConfiguration<LT_Surgeon>
    {
        public LT_SurgeonMap()
        {
            // Primary Key
            this.HasKey(t => t.LS_ID);

            // Properties
            this.Property(t => t.LS_Name)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("LT_Surgeon");
            this.Property(t => t.LS_ID).HasColumnName("LS_ID");
            this.Property(t => t.LS_Name).HasColumnName("LS_Name");
        }
    }
}
